<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>管理员登入入口</title>
  <link rel="stylesheet" href="http://42.192.127.112/assets/css/global.css">
  <style>
    body {
      justify-content: center;
      align-items: center;
      min-height: 100vh;
    }
    .title {
      font-weight: lighter;
      text-align: center;
      font-size: 1.75rem;
      margin-bottom: 0.25rem;
    }
    input {
      box-sizing: border-box;
      width: 15rem;
      line-height: 2.25rem;
      border: 1px solid #666;
      margin: 0.25rem;
      border-radius: 1.25px;
    }
    #submit {
      font-size: 1.125rem;
      background-color: red;
      color: white;
      border: none;
      border-color: red;
      cursor: pointer;
      font-weight: 200;
      text-transform: uppercase;
    }
  </style>
</head>
<body class="flex">
  <form action="">
    <div class="title">Vertify</div>
    <!-- <div><input type="text" name="nickname"></div> -->
    <div><input type="text" name="password"></div>
    <div><input type="button" value="submit" id="submit"></div>
  </form>
  <script>
    const fromElements = document.forms[0].elements
    // const nicknameEle = fromElements['nickname']
    const passwordEle = fromElements['password']
    let screct = 'awucanzix'.slice(1) + 'fuck'
    screct = screct.match(/([\S|\s]+)zixfuck/)[1] + '111'
    submit.addEventListener('click', ()=>{
      // const nickname = nicknameEle.value
      const password = passwordEle.value
      if(true && password === screct) {
        // nickname.value = ''
        password.value = ''
        setTimeout(()=>{
          location.href = './user'
        }, 120)
      }
    })
  </script>
</body>
</html>